<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>单点登陆集成系统</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" th:href="@{${resourceUrlPrefix} + '/public/favicon.ico'}" type="image/x-icon"/>
    <link th:href="@{${resourceUrlPrefix} + '/css/bootstrap.min.css'}" rel="stylesheet">
    <style>
        html, body {
            margin: 0;
            padding: 0;
            background: url([[${resourceUrlPrefix}]]/public/bg.jpg) no-repeat center center fixed;
            background-size: cover;
        }

        .main-title {
            margin-top: 100px;
            color: #fff;
        }

        .int-wrap {
            margin-top: 60px;
        }

        .int-wrap .int-item {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 70%;
            margin-bottom: 30px;
        }

        .int-wrap .int-item > a {
            display: block;
            position: absolute;
            padding: 15px;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            color: #fff;
            background-color: rgba(0, 0, 0, 0.6);
            text-decoration: none;
            text-align: center;
            transition: background-color 500ms ease;
        }

        .int-wrap .int-item > a:hover {
            background-color: rgba(0, 0, 0, 0.9);
        }

        .int-wrap .int-item > a > .int-icon {
            display: block;
            width: 80px;
            height: 80px;
            margin: 10px auto 0 auto;
            transition: transform 500ms ease;
        }

        .int-wrap .int-item > a:hover > .int-icon {
            transform: rotate(18deg);
        }

        .int-wrap .int-item > a > .int-icon > img {
            width: 100%;
            height: 100%;
        }

        .int-wrap .int-item > a > .int-title {
            height: 26px;
            margin-top: 10px;
            line-height: 26px;
            font-size: 18px;
            white-space: nowrap;
            overflow: hidden;
        }

        .int-wrap .int-item > a > .int-desc {
            max-height: 40px;
            line-height: 20px;
            white-space: normal;
            word-break: break-all;
            overflow: hidden;
            font-size: 12px;
            margin-top: 6px;
        }
    </style>
</head>
<body>
<h1 class="text-right" style="margin-top: 30px;color: #fff;"><a th:href="@{/logout}">退出</a></h1>
<h1 class="main-title text-center">单点登陆集成系统</h1>
<div class="container">
    <div class="row int-wrap">
        <div class="col-md-4 col-sm-6" th:each="item : ${appList}">
            <div class="int-item">
                <a th:href="${item.appHost}" target="_blank">
                    <div class="int-icon"><img th:src="@{${resourceUrlPrefix} + ${item.appIcon}}"></div>
                    <div class="int-title"><strong th:text="${item.appName}"></strong></div>
                    <div class="int-desc" th:text="${item.description}"></div>
                </a>
            </div>
        </div>
        <div class="col-md-4 col-sm-6">
            <div class="int-item">
                <a href="http://47.107.245.220/solr" target="_blank">
                    <div class="int-icon"><img th:src="@{${resourceUrlPrefix} + '/public/solr_logo.jpg'}"></div>
                    <div class="int-title"><strong>Apache Solr</strong></div>
                    <div class="int-desc">Apache Solr 管理控制台</div>
                </a>
            </div>
        </div>
        <div class="col-md-4 col-sm-6">
            <div class="int-item">
                <a href="http://47.107.245.220:8780" target="_blank">
                    <div class="int-icon"><img th:src="@{${resourceUrlPrefix} + '/public/default_logo.jpg'}"></div>
                    <div class="int-title"><strong>spring boot admin</strong></div>
                    <div class="int-desc">Spring boot admin 服务监控</div>
                </a>
            </div>
        </div>
    </div>
</div>

<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
<script th:src="@{${resourceUrlPrefix} + '/js/jquery.min.js'}"></script>
<script th:src="@{${resourceUrlPrefix} + '/js/bootstrap.min.js'}"></script>
</body>
</html>
